package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SendcouServiceMapper;
import com.ruoyi.system.domain.SendcouService;
import com.ruoyi.system.service.ISendcouServiceService;

/**
 * 上门寄件Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-06-17
 */
@Service
public class SendcouServiceServiceImpl implements ISendcouServiceService 
{
    @Autowired
    private SendcouServiceMapper sendcouServiceMapper;

    /**
     * 查询上门寄件
     * 
     * @param sendId 上门寄件ID
     * @return 上门寄件
     */
    @Override
    public SendcouService selectSendcouServiceById(Long sendId)
    {
        return sendcouServiceMapper.selectSendcouServiceById(sendId);
    }

    /**
     * 查询上门寄件列表
     * 
     * @param sendcouService 上门寄件
     * @return 上门寄件
     */
    @Override
    public List<SendcouService> selectSendcouServiceList(SendcouService sendcouService)
    {
        return sendcouServiceMapper.selectSendcouServiceList(sendcouService);
    }

    /**
     * 新增上门寄件
     * 
     * @param sendcouService 上门寄件
     * @return 结果
     */
    @Override
    public int insertSendcouService(SendcouService sendcouService)
    {

        return sendcouServiceMapper.insertSendcouService(sendcouService);
    }

    /**
     * 修改上门寄件
     * 
     * @param sendcouService 上门寄件
     * @return 结果
     */
    @Override
    public int updateSendcouService(SendcouService sendcouService)
    {
        return sendcouServiceMapper.updateSendcouService(sendcouService);
    }

    /**
     * 批量删除上门寄件
     * 
     * @param sendIds 需要删除的上门寄件ID
     * @return 结果
     */
    @Override
    public int deleteSendcouServiceByIds(Long[] sendIds)
    {
        return sendcouServiceMapper.deleteSendcouServiceByIds(sendIds);
    }

    /**
     * 删除上门寄件信息
     * 
     * @param sendId 上门寄件ID
     * @return 结果
     */
    @Override
    public int deleteSendcouServiceById(Long sendId)
    {
        return sendcouServiceMapper.deleteSendcouServiceById(sendId);
    }
}
